const mongoose = require('mongoose')
const Schema = mongoose.Schema
const ObjectId = Schema.ObjectId
const GbookSchema = new Schema({
    content : {type: String}, //留言内容
    name: {type: String}, //姓名
    img:{type:String},//头像
    email: { type: String}, // 邮箱
    createAt: { type: Date, default: Date.now}, //创建时间

})

module.exports = mongoose.model('Gbook', GbookSchema)